function answer = g(eta, h, func)
	if( func == 1 )
		answer = g_exp(eta, h);
	else 
		answer = g_tanh(eta,  h);
	endif
endfunction